package com.diy.sigmund.diyuser.mapper;

import com.diy.sigmund.diycommon.entity.po.user.UserAuth;
import com.diy.sigmund.diyuser.entity.dto.UserAuthDTO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;

/**
 * UserAuthMapper继承基类
 */
public interface UserAuthMapper extends MyBatisBaseDao<UserAuth, String> {

    List<UserAuth> listByUserId(@Param("userId") String userId);

    int countByIdentifierAndIdentityType(UserAuthDTO userAuthDTO);

    UserAuth getLogin(UserAuthDTO userAuthDTO);

    UserAuth getByIdentifier(@Param("identifier") String identifier);

    int resetCredential(@Param("userId") String userId, @Param("credential") String credential);

    int deleteByIdentityTypeAndIdentifier(@Param("identityType") String identityType,
            @Param("identifier") String identifier);

    List<UserAuth> listByTestPageHelper();

    Map<String,String> testSelectMap(@Param("userId") String userId);
}